<?php
/**
 * author: crisen
 * email: crisen@crisen.org
 * date: 19-1-19
 * description:
 */


use Faker\Generator as Faker;


$factory->define(App\Order::class, function (Faker $faker) {

    $user = factory(App\User::class)->create();

    return [
        'body' => '测试商品',
        'user_id' => $user->id,
        'fee' => mt_rand(1, 999),
        'goods_id' => 0,
        'goods_type' => 'service',
        'order_no' => generateOrderNo(),
    ];
});
